package com.hb.service;

import javax.annotation.security.RolesAllowed;

import com.hb.domain.Spittle;

public class JSR250SpittleService implements SpittleService {
    /**
     * 如下的 addSpittle() 方法使用了 @RolesAllowed 注解来代替 @Secured
     * @param spittle
     */
    @Override
    @RolesAllowed("ROLE_SPITTER")
    public void addSpittle(Spittle spittle) {
        System.out.println("Method was called successfully");
    }
}
